#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main() {
    int number;
    int odd_sum = 0;
    while (1) {
        scanf("%d", &number);
        if (number > 0) {
            if (number % 2 == 1) {
                odd_sum += number;
            }
        }
        else {
            break;
        }
    }

    printf("%d", odd_sum);
    return 0;
}
